Skip to content

fix: hide native scrollbars on mobile devices (iOS)#127

Open
aarush130 wants to merge 1 commit intoopen-amdocs:masterfrom
aarush130:fix/hide-native-scrollbars-mobile
Open

fix: hide native scrollbars on mobile devices (iOS)#127
aarush130 wants to merge 1 commit intoopen-amdocs:masterfrom
aarush130:fix/hide-native-scrollbars-mobile

Conversation

@aarush130
Copy link

Fixes #26

  • Added overflow: hidden to .scrollbar container to clip native scrollbars
  • Added negative margin technique to push native scrollbars outside visible area
  • Added display: none and -webkit-appearance: none to ::-webkit-scrollbar

This technique is used by popular libraries like SimpleBar and OverlayScrollbars.

Fixes open-amdocs#26

- Added overflow: hidden to .scrollbar container to clip native scrollbars
- Added negative margin technique to push native scrollbars outside visible area
- Added display: none and -webkit-appearance: none to ::-webkit-scrollbar

This technique is used by popular libraries like SimpleBar and OverlayScrollbars.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide native scrollbars on mobile devices

1 participant